//
//  HMConst.swift
//  HMWeibo1
//
//  Created by liGordon on 16/4/9.
//  Copyright © 2016年 lifuli. All rights reserved.
//

import UIKit

func HMPrint(items: Any, file: String = __FILE__, line: Int = __LINE__, function: String = __FUNCTION__) {
        #if DEBUG
            print((file as NSString).lastPathComponent + ",[\(line)]行, 方法名称: " + function + "输出: \(items)")
        #endif
}


let GlobalBGColor = UIColor.whiteColor()

let HMMainTabBarButtonCount = 5



// Mark: - 授权相关

// 加载授权登录界面的URL地址
let OauthUrl = "https://api.weibo.com/oauth2/authorize"

// 请应用时分配的appkey
let client_id = "1784502184"


// 授权回调地址
let redirect_uri = "http://www.baidu.com/"

// 申请应用分配的Appsecret
let client_secret = "33314ef4d693864cab191c05536d0270"

// 请求的类型
let grant_type = "authorization_code"

// accessToken请求地址
let accessTokenURLString =  "https://api.weibo.com/oauth2/access_token"


/// 账号归档和解档的路径
// 路径
let accountPath = NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.DocumentDirectory, NSSearchPathDomainMask.UserDomainMask, true).last!.stringByAppendingString("/account.plist")


/// 欢迎界面label大小
let HMWelcomeLabelFontSize: CGFloat = 14

/// 默认动画时长
let HMDefaultAnimDuration: NSTimeInterval = 0.25


/// 界面label大小
let HMNewFeatureLabelFontSize: CGFloat = 18


/// 新特性界面数量
let NumberOfNewFeatureItem = 4




/// Mark - cell的常量

/// 用户名称大小
let HMStatusNameFontSize: CGFloat = 14

/// 时间文字大小
let HMStatusTimeFontSize: CGFloat = 11

/// 微博文字大小
let HMStatusContentFontSize: CGFloat = 15

/// 微博内容间距
let HMStatusCellMargin: CGFloat = 8

/// 微博头像大小
let HMStatusIconWH: CGFloat = 35